import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
import { resolve } from 'path';

export const SvgIconsPlugin = () => {
	return createSvgIconsPlugin({
		iconDirs: [resolve(process.cwd(), 'src/icons/svg')], // 指定需要缓存的图标文件夹
		symbolId: 'icon-[dir]-[name]', // 指定symbolId格式
	});
};
